<template>
  <div>
    <div>
      <schedule-info @courseTableData="getCourseTableData"></schedule-info>
    </div>
    <div>
      <schedule-table v-if="y=tableVisible" :courseTableData="courseTableData" ></schedule-table>
    </div>
  </div>
</template>

<script>
import ScheduleTable from "./ScheduleTable";
import ScheduleInfo from "./ScheduleInfo";

export default {
  components: { ScheduleTable, ScheduleInfo },
  data() {
    return {
      courseTableData: [],
      tableVisible: false,
    };
  },
  methods: {
    getCourseTableData(TableData) {
      this.courseTableData = TableData;
      this.tableVisible = true;
    },
  },
};
</script>

<style lang="scss" scoped></style>
